src/ostree: Add --commit-only option to ostree prune
authorSaqib Ali <saqali@redhat.com>
Mon, 7 Feb 2022 15:53:08 +0000 (10:53 -0500)
committerSaqib Ali <saqali@redhat.com>
Fri, 25 Feb 2022 23:32:25 +0000 (18:32 -0500)
commit725d50a3b53de47deef53a7c9120d304cb9a625a
treecd8a5731d38b3ef62ad959d6ed20e1d588b60e67
parent00e39ebedc28e2f4d3b86ab5993ca67d9f1ed217
src/ostree: Add --commit-only option to ostree prune

Recently we have noticed exceedingly long execution times
for multiple invocations of ostree prune. This is a result of
calculating full reachability on each invocation.

The --commit-only flag provides an alternative strategy. It will only
traverse and delete commit objects to avoid the more expensive
reachability calculations. This allows us to chain multiple --commit-only
commands cheaply, and then follow with a more expensive ostree prune
invocation at the end to clean up orphaned meta and content objects.
Makefile-libostree.am
apidoc/ostree-sections.txt
src/libostree/libostree-devel.sym
src/libostree/ostree-repo-prune.c
src/libostree/ostree-repo-traverse.c
src/libostree/ostree-repo.h
src/ostree/ot-builtin-prune.c